package com.javalong.affairs.base.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import com.javalong.affairs.base.common.ServiceLocator;
import com.javalong.affairs.base.common.UIHandler;
import com.javalong.affairs.module.renwujinzhang.ui.SelectFileView;

/**
 * Created by 杨观回 on 2016/2/28 0028.
 */
public class FileSelectReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        UIHandler uiHandler = ServiceLocator.GetInstance().getInstance(UIHandler.class);
        int flag = intent.getIntExtra("flag", 0);
        Bundle bundle = new Bundle();
        bundle.putString("file", intent.getStringExtra("file"));
        uiHandler.postCallback(flag, bundle);
    }
}
